import cssom from "cssom";
import { Deduplication } from "./Deduplication";

export default function styletexttocssrulesstring(styletext: string): string[] {
    const stylesheet = cssom.parse(styletext);
    return Deduplication(Array.from(stylesheet.cssRules).map((a) => a.cssText));
}
